<template>
  <header class="header">
    <div class="icon-button" @click="goBack">
      <img
        src="../../images/fae98107-94c4-47d1-ab04-f3e21ba7d864.png"
        alt="Back"
      />
    </div>
    <div class="title">诊断列表</div>
    <button class="icon-button" @click="openMessages">
      <i class="iconfont icon-lingdang"></i>
    </button>
  </header>
  <SwipeDeleteList />
</template>

<script>
import SwipeDeleteList from "../../components/SwipeDeleteList/index.vue";

export default {
  components: {
    SwipeDeleteList,
  },

  methods: {
    goBack() {
      // 处理返回按钮点击事件
      this.$router.go(-1);
    },
    openMessages() {
      // 处理消息按钮点击事件
      this.$router.push("/Message");
    },
  },
};
</script>

<style scoped>
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}
.header .title {
  width: 90%;
  display: flex;
  font-size: 16px;
  justify-content: space-around;
  color: #000 !important;
  margin-left: 0;
  letter-spacing: 0px;
}

.icon-button {
  background: none;
  border: none;
  cursor: pointer;
}
</style>
